Stop Writing Long Selenium Python Code